<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ include file="/WEB-INF/jsp/common/_includes.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<jsp:include page="/WEB-INF/jsp/common/_head.jsp"/>
<div class="ui grid">
    <div class="row">
        <div class="column">
            <div class="ui two column grid">
                <div class="three wide column">
                    <jsp:include page="/WEB-INF/jsp/common/_sidebar.jsp">
                        <jsp:param name="index" value="701"/>
                    </jsp:include>
                </div>
                <div id="container" class="thirteen wide column">
                    <ol class="breadcrumb">
                        <li><a href="/">后台管理</a></li>
                        <li><a href="/phrasebook/list">短语管理</a></li>
                    </ol>
                    <ul class="nav nav-pills" role="tablist">
                        <li role="presentation" class="active"><a href="/phrasebook/add">录入短语</a></li>
                    </ul>
                    <table class="table table-hover">
                        <thead>
                        <tr>
                            <th>短语ID</th>
                            <th>短语信息</th>
                            <th>短语类型</th>
                            <th>创建时间</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${paginate.pageList}" var="phrasebook">
                            <tr>
                                <td><a href="/phrasebook/${phrasebook.id}/details" target="_blank">${phrasebook.id}</a></td>
                                <td><a href="/phrasebook/${phrasebook.id}/details" target="_blank">${phrasebook.content}</a></td>
                                <td>${phrasebook.typeStr}</td>
                                <td><fmt:formatDate value="${phrasebook.createdTime}" pattern="yyyy-MM-dd"/> </td>
                                <td> <a class="btn active btn-success"  href="/phrasebook/${phrasebook.id}/edit">编辑</a> </td>
                            </tr>
                        </c:forEach>
                        </tbody>
                    </table>
                    <div class="page-info clearfix">
                        <jsp:include page="/WEB-INF/jsp/common/_page.jsp"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<jsp:include page="/WEB-INF/jsp/common/_foot.jsp"></jsp:include>
